DefaultAttribute

Basic and Crystal syntax.

Returns

Can return any field type

Action

The value returned by DefaultAttribute depends upon the value selected for the attribute being formatted in the attribute value interface.

Examples

DefaultAttribute can be used in conjunction with CurrentFieldValue to conditionally format fields based upon their values and default condition.

The following examples are applicable to Crystal syntax:

if CurrentFieldValue < 0 then DefaultAttribute else crBlack

In Basic syntax, the formula will be:

If CurrentFieldValue < 0 Then

    formula = DefaultAttribute

Else

    formula = crBlack

End If

Formats the font color of the object to print in the default color when the value of the field is less than zero and to print black when the value of the field is greater than zero.

Comments

DefaultAttribute is only available when entering formatting formulas.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com